import matplotlib.pyplot as plt
import numpy as np

for x in range(1,)
x= np.linspace(-2,1,50)
y=1000*x+1

plt.xlim(0,30)
plt.ylim(0,20000)
plt.xlabel("date")
plt.ylabel("number")
ax = plt.gca()
ax.spines["top"].set_color("none")
ax.spines["right"].set_color("none")
ax.xaxis.set_ticks_position("bottom")
ax.yaxis.set_ticks_position("left")
plt.plot(x,y,label = "line1")
plt.legend()
plt.show()
